<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./TemplateApp.xhtml">

            <ui:define name="top">
                top
            </ui:define>

            <ui:define name="left">
                left
            </ui:define>

            <ui:define name="content">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:form>
                    <p:panelGrid columns="2">
                        <h:outputLabel value="Titulo: " for="tituloTicket" />
                        <p:inputText id="tituloTicket" value="#{hdTicketsController.selected.tituloTicket}" size="50" />
                        <h:outputLabel value="Descripcion: " for="descTicket" />
                        <p:editor id="descTicket" value="#{hdTicketsController.selected.descTicket}" width="600" />
                        <h:outputLabel value="Solicitante" for="codUsuario" />
                        <p:selectOneMenu id="codUsuario" value="#{hdTicketsController.selected.codUsuario}" title="#{bundle.CreateHdTicketsTitle_codUsuario}" >
                            <f:selectItems value="#{hdUsuariosController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>

                        <h:outputLabel value="Tipo Ticket" for="codClasiBaja" />
                        <p:selectOneMenu id="codClasiBaja" value="#{hdTicketsController.selected.codClasiBaja}" title="#{bundle.CreateHdTicketsTitle_codClasiBaja}" >
                            <f:selectItems value="#{hdClasifiBajaController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputText value="Canalizador: " />
                        <p:selectOneMenu id="codAsesor" value="#{hdTicketsController.selected.codAsesor}" title="#{bundle.CreateHdTicketsTitle_codAsesor}" >
                            <f:selectItems value="#{hdAsesorController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <f:facet name="footer">
                            <p:commandButton value="Guardar" action="#{hdTicketsController.create1}" ajax="false" />
                            <p:commandButton value="Borrar" type="button" ajax="false" />
                        </f:facet>
                    </p:panelGrid>
                </h:form>

            </ui:define>

            <ui:define name="bottom">
                bottom
            </ui:define>

        </ui:composition>

    </body>
</html>
